package com.wjw;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
//如果在mapper接口上没有@Mapper注解，那么就需要在启动类上配置注解MapperScan
//用于指定MyBatis应该扫描哪个包来查Mappe接口
@MapperScan("com.wjw.mapper")
public class MyApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class);
    }
}
